package com.iwuyc.tools.commons.system;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * java运行时规范信息
 */
@Getter
@Setter
@ToString
public class JavaSpecGetter {
    /**
     * 供应商名称
     */
    private final String vendor;
    /**
     * Java 运行时环境规范版本
     */
    private final String version;
    /**
     * Java 运行时环境规范名称
     */
    private final String name;

    public JavaSpecGetter() {
        this.vendor = System.getProperty("java.specification.vendor");
        this.version = System.getProperty("java.specification.version");
        this.name = System.getProperty("java.specification.name");
    }
}
